<template>
  <view class="container">
		
   <video class="video-box" :src="url" :style="{width:winHeight + 'rpx',height:winHeight +'px'}" :autoplay='true' ></video>
  </view>
</template>

<script setup>
import comment from "@/components/comment/index.vue"
import {getCurrentInstance, ref} from "vue";
import {onLoad} from "@dcloudio/uni-app";

const {proxy} = getCurrentInstance();
const url = ref('')
const winWidth = ref('')
const winHeight = ref('')
onLoad((e) => {
	url.value = e.url
	init()
})


function init() {
	uni.getSystemInfo({
	  success: function (res) {
	    // 将屏幕宽度和高度保存到实例中
	    winWidth.value = res.windowWidth;
	    winHeight.value = res.windowHeight;
			
		}
	})
}

</script>

<style lang="scss" scoped>
.video-box{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
}

</style>
